# $Id: PKGBUILD 71094 2012-05-24 04:26:56Z bgyorgy $
# Maintainer: Balló György <ballogyor+arch at gmail dot com>

_pkgname=configglue
pkgname=python2-$_pkgname
pkgver=1.0.3
pkgrel=1
pkgdesc="Library that glues together python's optparse.OptionParser and ConfigParser.ConfigParser"
arch=('any')
url="https://launchpad.net/configglue"
license=('BSD')
depends=('pyxdg')
makedepends=('python2-distribute')
source=(http://launchpad.net/$_pkgname/trunk/$pkgver/+download/$_pkgname-$pkgver.tar.gz)
md5sums=('fdcfdf2f54ba05e8b89a246f4f7ee06b')

build() {
  cd "$srcdir/$_pkgname-$pkgver"

  python2 setup.py build
}

package() {
  cd "$srcdir/$_pkgname-$pkgver"

  python2 setup.py install --root=$pkgdir/ --optimize=1

  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
